package com.etone.smartAudit.dto.task;

import com.etone.smartAudit.dto.FileDTO;
import com.etone.smartAudit.dto.tool.ToolBaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/7/29
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "ToolWorkTaskDTO", description = "工具中台任务")
public class ToolWorkTaskDTO extends BaseTaskDTO implements Serializable {

    @ApiModelProperty("id:仅仅用于编辑")
    private Integer id;

    @ApiModelProperty("任务内容")
    @NotEmpty
    private String content;

    @ApiModelProperty("附件")
    private List<FileDTO> files;

    @ApiModelProperty("涉及工具")
    private List<ToolBaseDTO> tools;
}
